﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8">
  <title><!--{$lang.page.index.title}--></title>
  <link rel="shortcut icon" href="/static/images/favicon.ico" type="image/x-icon" />
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" href="/static/lay/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="/static/lay/layui/index.css" media="all">
</head>
<body class="layui-layout-body">
  
  <div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
      <div class="layui-header">
       <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left" id="topmue">
      <li class="layui-nav-item" ><a href="#"><img src="/static/admin/images/yunlogo.png" ></a></li>
      <!--{$topmue}-->
    </ul>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-right" lay-filter='layadmin-layout-right'>
      <li class="layui-input-inline" ><i class="layui-icon layui-icon-read"></i>
        <select class="my-select" id="language">
            <!--{foreach item=item key=key from=$langs}-->
            <option value='<!--{$key}-->' <!--{if $key eq $default}-->selected<!--{/if}-->><!--{$item.name}--></option>
            <!--{/foreach}-->
        </select>
      </li>
      <li class="layui-nav-item"><a href="#"><!--{$lang.page.index.youok}-->，<!--{$user.realname}--></a></li>
      <li class="layui-nav-item"><a href="#"><!--{$lang.page.index.logip}-->：<!--{$user.ip}--></a></li>
      <li class="layui-nav-item"><a href="#"><!--{$lang.page.index.logtime}-->：<!--{$user.time}--></a></li>
      <li class="layui-nav-item"><a href="#" title="<!--{$lang.page.index.helpword}-->">&nbsp;&nbsp;<i class="layui-icon layui-icon-survey"></i>&nbsp;&nbsp;</a></li>
      <li class="layui-nav-item">&nbsp;&nbsp;<img src="<!--{if $user.header_url}--><!--{$user.header_url}--><!--{else}-->/static/img/headimg.png<!--{/if}-->" class="layui-nav-img">&nbsp;&nbsp;
        <dl class="layui-nav-child">
          <dd class="lay-user"><li><!--{$lang.page.index.account}-->：<!--{$user.username}--><br /><!--{$lang.page.index.account}--> ID：<!--{$user.aid}--></li></dd>
          <dd class="lay-userinfo">
            <li class="right-border"><a href="#" onclick="xadmin.open({title:'<!--{$lang.page.index.accmanger}-->',url:'/user/account/info/',width:'1280',height:'650'});"><!--{$lang.page.index.accmanger}--></a></li>
            <li><a href="#" onclick="xadmin.open({title:'<!--{$lang.page.index.cacheinfo}-->',url:'/admin/index/cache/',width:'1080',height:'650'});"><!--{$lang.page.index.cacheinfo}--></a></li></dd>
          <dd class="clearboth"><a href="#" id="dropOut"><!--{$lang.page.index.logout}--></a></dd>
        </dl>
      </li>
      
    </ul>
  </div>

  <!-- 侧边菜单 -->
      <div class="layui-side layui-side-menu">
        <div class="layui-side-scroll"> 
          <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
           <!--{$mue}-->
          </ul>
          <div class="layui-ver">
           <!-- 版权 -->
           © <!--{$sys_info.ver}-->
         </div>
        </div>
      </div>
      <span class="layui-menu-subclose btn"><i class="layui-icon">&#xe603;</i></span>

      <!-- 页面标签 -->
      <div class="layadmin-pagetabs" id="LAY_app_tabs">
        <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
        <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
        <div class="layui-icon layadmin-tabs-control layui-icon-down">
          <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
            <li class="layui-nav-item" lay-unselect>
              <a href="javascript:;"></a>
              <dl class="layui-nav-child layui-anim-fadein">
                <dd layadmin-event="closeThisTabs"><a href="javascript:;"><!--{$lang.page.index.closedtag}--></a></dd>
                <dd layadmin-event="closeOtherTabs"><a href="javascript:;"><!--{$lang.page.index.closedtagother}--></a></dd>
                <dd layadmin-event="closeAllTabs"><a href="javascript:;"><!--{$lang.page.index.closedtagall}--></a></dd>
              </dl>
            </li>
          </ul>
        </div>
        <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
          <ul class="layui-tab-title" id="LAY_app_tabsheader">
            <li lay-id="/admin/index/console/" lay-attr="/admin/index/console/" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
          </ul>
        </div>
      </div>
      
      
      <!-- 主体内容 -->
      <div class="layui-body" id="LAY_app_body">
        <div class="layadmin-tabsbody-item layui-show" id="ui-view">
          <iframe src="/admin/index/console/" frameborder="0" class="layadmin-iframe"></iframe>
        </div>
      </div>
      
      <!-- 辅助元素，一般用于移动设备下遮罩 -->
      <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
  </div>

  <script src="/static/lay/layui/layui.js"></script>
    <script>
   layui.config({
     base: '/static/lay/' //静态资源所在路径
   }).extend({
     index: 'lib/index'//主入口模块
     , xadmin: 'lib/xadmin' //弹窗
     , mue: 'lib/mue' //弹窗
   }).use(['jquery', 'layer','xadmin','index'],function(){
        var $ = layui.$ //引用jq
        var layer = layui.layer; //独立版的layer无需执行这一句
        $('#language').change(function(){
            $.post('/admin/login/setlanguage/',{'lang':$('#language').val()}, function(data) {
                if(data.code==200){
                    location.reload();
                }else{
                    toast(data.msg,3)
                }
            })
        });

        $(document).on("click","#dropOut",function(){
            if(confirm('<!--{$lang.page.index.logoutinfo}-->')){self.location='/admin/login/logout/';}
        });
   });
  </script>
</body>
</html>


